<div class="worker-info work-info-detail main shadowbox">
  <div class="container-header">人员详情查看
    <div class="pa-btn go-back" ng-click="goBack();">
      <i class="fa fa-reply"></i>
      <span class="ml5">返回</span>
    </div>
  </div>
  <div class="info-vendor">
    <form class="base-info"
      name="worker" novalidate
      ng-class="{'editable':workerInfoDetail.editable}">
      <!-- 档案编号 -->
      <div class="info-items">
        <div class="info-title">
          <span class="title-brief">档案编号</span>
          <div class="edit">
            <div class="info-pencil" ng-click="workerInfoDetail.editInfo()">
              <div ng-hide="workerInfoDetail.editable">
                <i class="fa fa-pencil"></i>
                <span>编辑</span>
              </div>
              <div ng-show="workerInfoDetail.editable">
                <i class="fa fa-reply"></i>
                <span>取消</span>
              </div>
            </div>
          </div>
        </div>
        <div class="info-content">
          <div class="file-number fl">        
            <label class="fl record-num">
              <b>*</b>档案编号：
            </label>
            <div class="pa-input pa-input-edit fl">
              <input type="text" name="recordNo" required
                autofocus="autofocus" 
                ng-model="workerInfoDetail.editableUserInfo.recordNo"/>
            </div>
            <span class="error-tip"
              ng-show="(worker.$submitted || worker.recordNo.$dirty) && worker.recordNo.$error.required">
              必填
            </span>
            <div class="pa-input pa-input-unedit fl">
              {{workerInfoDetail.userInfo.recordNo}}
            </div>    
          </div>
        </div>
      </div>
      <!-- 基本信息 -->
      <div class="info-items">
        <div class="info-title">
          <span class="title-brief">基本信息</span>
        </div>
        <div class="base-info pa-form-content">
          <div class="row-fl fl">
            <div class="row-item">
              <div class="pa-form-control fl">
                <label class="fl">
                  <b>*</b>姓名：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text" name="username" required
                    ng-model="workerInfoDetail.editableUserInfo.name" required/>
                </div>
                <div class="pa-input pa-input-unedit fl">
                  {{workerInfoDetail.userInfo.name}}
                </div>
                <span class="mandatory"
                  ng-show="(worker.$submitted || worker.username.$dirty) && worker.username.$error.required">
                  必填
                </span>
              </div>
              <div class="pa-form-control fl">
                <label class="fl">
                  <b>*</b>性别：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="radio" class="sex-checkbox" name="gender" value="1"
                    ng-model="workerInfoDetail.editableUserInfo.sex" required/>男
                  <input type="radio" class="sex-checkbox" name="gender" value="0"
                    ng-model="workerInfoDetail.editableUserInfo.sex" required/>女
                </div>
                <div class="pa-input pa-input-unedit fl">
                  {{workerInfoDetail.userInfo.sex == 1 ? '男' : 
                    workerInfoDetail.userInfo.sex == 0 ? '女' : ''}}
                </div>          
                <span class="mandatory mandatory-gender"
                  ng-show="(worker.$submitted || worker.gender.$dirty) && worker.gender.$error.required"
                  >
                  必填
                </span> 
              </div>
              <div class="pa-form-control fl">
                <label class="fl">
                  <b>*</b>身份证号：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text" name="idCard" required
                    ng-model="workerInfoDetail.editableUserInfo.idCard"/>
                </div>
                <div class="pa-input pa-input-unedit fl">
                  {{workerInfoDetail.userInfo.idCard}}
                </div>
                <span class="mandatory" 
                  ng-show="(worker.$submitted || worker.idCard.$dirty) && worker.idCard.$error.required">
                  必填
                </span>
              </div>
            </div>
            <div class="row-item">
              <div class="pa-form-control fl">
                <label class="fl">
                  出生日期：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text"
                    ng-datepicker date-format
                    ng-model="workerInfoDetail.editableUserInfo.birthday" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.birthday1}}
                </div>
              </div>
              <div class="pa-form-control fl">
                <label class="fl">
                  籍贯：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text"
                    ng-model="workerInfoDetail.editableUserInfo.nativePlace" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.nativePlace}}
                </div>
              </div>
              <div class="pa-form-control fl">
                <label class="fl">
                  婚姻状况：
                </label>           
                <div class="pa-input pa-input-edit fl">
                  <input type="radio" class="sex-checkbox" name="marriage" value="1" ng-model="workerInfoDetail.editableUserInfo.maritalStatus">是
                  <input type="radio" class="sex-checkbox" name="marriage" value="0" ng-model="workerInfoDetail.editableUserInfo.maritalStatus">否
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.editableUserInfo.maritalStatus == '1' ? '是' :
                    workerInfoDetail.editableUserInfo.maritalStatus == '0' ? '否' : ''}}
                </div>
              </div>        
            </div>
            <div class="row-item"> 
              <div class="pa-form-control fl">
                <label class="fl">
                  政治面貌：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text"
                    ng-model="workerInfoDetail.editableUserInfo.politicsStatus" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.politicsStatus}}
                </div>
              </div>                 
              <div class="pa-form-control fl">
                <label class="fl">
                  学历：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text"
                    ng-model="workerInfoDetail.editableUserInfo.degree" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.degree}}
                </div>
              </div>
              <div class="pa-form-control fl">
                <label class="fl">
                  入党时间：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text" 
                    ng-datepicker
                    ng-model="workerInfoDetail.editableUserInfo.joinPartyTime" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.joinPartyTime1}}
                </div>
              </div>
            </div>
            <div class="row-item">
              <div class="pa-form-control fl">
                <label class="fl">
                  <b>*</b>岗位类别：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <select name="stationCategory" required
                    style="width: 100%;"
                    ng-model="workerInfoDetail.editableUserInfo.stationCategory">
                    <option value=""></option>
                    <option value="{{item.code}}"
                      ng-repeat ="item in workerInfoDetail.categoryList">
                      {{item.name}}
                    </option>
                  </select>
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.stationCategoryText}}
                </div>
                <span class="mandatory"
                  ng-show="(worker.$submitted || worker.stationCategory.$dirty) && worker.stationCategory.$error.required"
                  >
                  必填
                </span>
              </div>
              <div class="pa-form-control fl">
                <label class="fl">
                  <b>*</b>进场时间：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text" ng-datepicker name="inTime" required 
                    ng-model="workerInfoDetail.editableUserInfo.inTime" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.inTime1}}
                </div>
                <span class="mandatory"
                  ng-show="(worker.$submitted || worker.inTime.$dirty) && worker.inTime.$error.required"
                  >
                  必填
                </span>
              </div>       
            </div>
            <div class="row-item">
              <div class="pa-form-control fl">
                <label class="fl">
                  <b>*</b>施工队：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <select id="type" name="type"
                    ng-model="workerInfoDetail.editableUserInfo.constructionTeamId" required>
                    <optgroup ng-repeat="teamGroup in workerInfoDetail.teamWithOrgList"
                      label="{{teamGroup.orgUnitName}}">
                      <option ng-repeat="team in teamGroup.teamList" 
                        ng-selected="workerInfoDetail.editableUserInfo.constructionTeamId == team.teamId ? true : false"
                        value="{{team.teamId}}">
                        {{team.teamName}}
                      </option>
                    </optgroup>
                  </select>
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.constructionTeamName}}
                </div> 
                <span class="mandatory"
                  ng-show="(worker.$submitted || worker.type.$dirty) && worker.type.$error.required">
                  必填
                </span>         
              </div>
              <div class="pa-form-control fl">
                <label class="fl">
                  上岗时间：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text" ng-datepicker
                    ng-model="workerInfoDetail.editableUserInfo.workTime" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.workTime1}}
                </div>
              </div>
              <div class="pa-form-control fl">
                <label class="fl">
                  联系方式：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text" ng-model="workerInfoDetail.editableUserInfo.phone" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.phone}}
                </div>
              </div>
            </div>
            <div class="row-item">
              <div class="pa-form-control fl">
                <label class="fl">
                  <b>*</b>进入单位时间：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text" name="enterTime" ng-datepicker
                    ng-model="workerInfoDetail.editableUserInfo.entryTime" 
                    required />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.editableUserInfo.entryTime1}}
                </div>
                <span class="mandatory"
                  ng-show="(worker.$submitted || worker.enterTime.$dirty) && worker.enterTime.$error.required"
                  >
                  必填
                </span>
              </div>
              <div class="pa-form-control fl">
                <label class="fl">
                  家庭地址：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text"
                    ng-model="workerInfoDetail.editableUserInfo.homeAddress" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.homeAddress}}
                </div>
              </div>
            </div>
            <div class="row-item">
              <div class="pa-form-control fl">
                <label class="fl">
                  <b>*</b>是否特种人员：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="radio"
                  class="sex-checkbox"
                  name="personnel"
                  value="1"
                  ng-model="workerInfoDetail.editableUserInfo.isspecialMan"
                  ng-change="workerInfoDetail.isSpecial()">是
                  <input type="radio"
                  class="sex-checkbox"
                  name="personnel"
                  value="0"
                  ng-model="workerInfoDetail.editableUserInfo.isspecialMan"
                  ng-change="workerInfoDetail.isSpecial()">否
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.isspecialMan == '1' ? '是' :
                    workerInfoDetail.userInfo.isspecialMan == '0' ? '否' : ''}}
                </div>
              </div>
              <div class="pa-form-control fl"
                ng-if="workerInfoDetail.isSpecialMandatory">
                <label class="fl">
                  <b>*</b>证书编号：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text" name="certyNo" required
                    ng-model="workerInfoDetail.editableUserInfo.certificateNo" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.certificateNo}}
                </div>
                <span class="mandatory"
                  ng-show="(worker.$submitted || worker.certyNo.$dirty) && workerInfoDetail.isSpecialMandatory && worker.certyNo.$error.required"
                  >
                  必填
                </span>
              </div>
              <div class="pa-form-control fl"
                ng-if="workerInfoDetail.isSpecialMandatory">
                <label class="fl">
                  <b>*</b>发证部门：
                </label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text" name="numberDepartment" required
                    ng-model="workerInfoDetail.editableUserInfo.certificateDepartment" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.certificateDepartment}}
                </div>
                <span class="mandatory"
                  ng-show="(worker.$submitted || worker.numberDepartment.$dirty) && workerInfoDetail.isSpecialMandatory && worker.numberDepartment.$error.required">
                  必填
                </span>
              </div>
            </div>
            <div class="row-item">
              <div class="pa-form-control fl"
                ng-if="workerInfoDetail.isSpecialMandatory">
                <label class="fl">作业类别：</label>
                <div class="pa-input pa-input-edit fl">
                  <select name="workType" 
                    style="width: 140px;"
                    ng-model="workerInfoDetail.editableUserInfo.workType">
                    <option value=""></option>
                    <option value="{{item.code}}"
                      ng-repeat ="item in workerInfoDetail.workList">
                      {{item.name}}
                    </option>
                  </select>
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.workTypeName}}
                </div>
              </div> 
              <div class="pa-form-control fl"
                ng-if="workerInfoDetail.isSpecialMandatory">
                <label class="fl">
                  <b>*</b>发证时间：</label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text" name="certyTime" required 
                    ng-datepicker
                    ng-model="workerInfoDetail.editableUserInfo.certificateTime" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.certificateTime1}}
                </div>
                <span class="mandatory" 
                  ng-show="(worker.$submitted || worker.certyTime.$dirty) && workerInfoDetail.isSpecialMandatory && worker.certyTime.$error.required">
                  必填
                </span>
              </div> 
              <div class="pa-form-control fl"
                ng-if="workerInfoDetail.isSpecialMandatory">
                <label class="fl">
                  <b>*</b>下次复审时间：</label>
                <div class="pa-input pa-input-edit fl">
                  <input type="text" name="nextTime" required
                    ng-datepicker
                    ng-model="workerInfoDetail.editableUserInfo.nextReviewTime" />
                </div>
                <div class="pa-input pa-input-unedit">
                  {{workerInfoDetail.userInfo.nextReviewTime1}}
                </div>
                <span class="mandatory" 
                  ng-show="workerInfoDetail.isSpecialMandatory && (worker.$submitted || worker.nextTime.$dirty) && worker.nextTime.$error.required">必填</span>
              </div>
            </div>
          </div>
          <div class="row-fr">
            <!-- 展示头像和文件 -->
            <div class="avatar-upload-outer"
              ng-show="!workerInfoDetail.editable">
              <img class="avatar-img"
                ng-src="{{workerInfoDetail.getAvatarSrc()}}"/>
            </div>
            <div class="avatar-attachment-upload-outer"
              ng-show="!workerInfoDetail.editable">
              <div class="file-list-outer">
                <div class="file-item"
                  ng-repeat="item in workerInfoDetail.userInfo.fileBeanList">
                  <span class="upload-file-name">{{item.fileName}}</span>
                  <div>
                    <a class="pa-btn"
                      ng-click="workerInfoDetail.preview(item, archiveDetail)">
                      预览
                    </a>
                    <a class="pa-btn file-del-btn" target="_blank" 
                      ng-href="{{workerInfoDetail.getDownloadSrc(item)}}">
                        下载
                    </a>
                  </div>                 
                </div>
              </div>
            </div>

            <!-- 上传头像文件部分 -->
            <avatar-upload
              ng-show="workerInfoDetail.editable"
              component-id="cp1"
              pick-btn-id="avatar_picker"
              upload-url="{{fileUploadUrl.workerInfo}}"
              image-file="workerInfoDetail.editableUserInfo.imageFile">
            </avatar-upload>
            <avatar-attachment-upload
              ng-show="workerInfoDetail.editable"
              component-id="cp2"
              pick-btn-id="workerinfo_attachment"
              upload-url="{{fileUploadUrl.workerInfo}}"
              file-list="workerInfoDetail.editableUserInfo.fileBeanList">
            </avatar-attachment-upload>
          </div>           
        </div>
        <div class="btn-outer"
          ng-show="workerInfoDetail.editable">
          <a class="pa-btn"
            ng-click="workerInfoDetail.save(worker)">
            <i class="fa fa-save" ></i>
            <span class="ml5">保存</span>
          </a>
          <a class="pa-btn reset-btn"
            ng-click="workerInfoDetail.reset()">
            <i class="fa fa-repeat"></i>
            <span class="ml5">重置</span>
          </a>
        </div>
      </div>
    </form>
  </div>
  <!-- 专业技术 -->
  <div class="info-items">
    <div class="info-title">
      <span class="title-brief">专业技术</span>
      <div class="edit-add"
        ng-click="workerInfoDetail.addProSkill()"
        ng-show="!workerInfoDetail.isAddible"
        authorization-btn="api/safesite/workerSkill/insertSelective">
        <i class="fa fa-plus"></i>
        <span>新增</span>
      </div>
      <div class="edit-add"
        ng-click="workerInfoDetail.addProSkill()"
        ng-show="workerInfoDetail.isAddible"
        authorization-btn="api/safesite/workerSkill/insertSelective">
        <i class="fa fa-minus"></i>
        <span>取消新增</span>
      </div>
    </div>
    <form class="base-info pa-form-content" >
      <table class="pa-table">
        <thead>
          <tr>
            <th>职称</th>
            <th>技能等级</th>
            <th>执(职)业资格</th>
            <th class="pro-operate">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat = "item in workerInfoDetail.proItemList track by $index" ng-class="{'editPro':item.isEditable}">
            <td>
              <div class="pa-input-unedit">
                {{item.positionName}}
              </div>
              <div class="pa-input-edit">
                <input type="text"
                  ng-model="workerInfoDetail.editableProItemList[$index].positionName" />
              </div>
            </td>
            <td>
              <div class="pa-input-unedit">
                {{item.skillLevel}}
              </div>
              <div class="pa-input-edit">
                <input type="text"
                  ng-model="workerInfoDetail.editableProItemList[$index].skillLevel" />
              </div>
            </td>
            <td>
              <div class="pa-input-unedit">
                {{item.professionalQualification}}
              </div>
              <div class="pa-input-edit">
                <input type="text"
                  ng-model="workerInfoDetail.editableProItemList[$index].professionalQualification" />
              </div>
            </td>
            <td class="operate-detail">
              <div ng-show="!item.isEditable">
                <div class="edit-item"
                  ng-click="workerInfoDetail.editProfessional(item)"
                  authorization-btn="api/safesite/workerSkill/updateByPrimaryKeySelective">
                  <div>  
                    <i class="fa fa-pencil"></i>
                    <span>编辑</span>
                  </div>
                </div>
                <div class="edit-item"
                  ng-click="workerInfoDetail.detete(item.id)"
                  authorization-btn="api/safesite/workerSkill/deleteByPrimaryKey">
                  <div class="edit-del">
                    <i class="fa fa-trash"></i>
                    <span>删除</span>
                  </div>
                </div>
              </div>
              <div ng-show="item.isEditable">
                <div class="edit-item"
                  ng-click="workerInfoDetail.saveProSkillItem(item, $index)"
                  authorization-btn="api/safesite/workerSkill/updateByPrimaryKeySelective">
                  <div>  
                    <i class="fa fa-save"></i>
                    <span>保存</span>
                  </div>
                </div>
                <div class="edit-item"
                  ng-click="workerInfoDetail.cancelEditSkill(item, $index)">
                  <div class="edit-del ">
                    <i class="fa fa-reply"></i>
                    <span>取消</span>
                  </div>
                </div>
              </div>            
            </td>
          </tr>                                    
        </tbody>
      </table>
    </form>

    <!-- 新增专业技能 -->
    <form class="base-info pa-form-content"
      ng-show="workerInfoDetail.isAddible" name="addible" novalidate>
      <div class="row-item add-skill">
        <div class="pa-form-control fl">
          <label class="fl"><b>*</b>专业技术:</label>
          <div class="pa-input fl">
            <input type="text"
              name="positionName" required 
              ng-model="workerInfoDetail.addSkillList.positionName" />
          </div>
          <span class="error-tip"
            ng-show="(addible.$submitted || addible.positionName.$dirty) && addible.positionName.$invalid">
            必填
          </span>
        </div>
        <div class="pa-form-control fl"> 
          <label class="fl"><b>*</b>技能等级:</label>
          <div class="pa-input fl">
            <input type="text" name="skillLevel" required
              ng-model="workerInfoDetail.addSkillList.skillLevel" />
          </div>
          <span class="error-tip"
            ng-show="(addible.$submitted || addible.skillLevel.$dirty) && addible.skillLevel.$invalid">
            必填
          </span>
        </div>
        <div class="pa-form-control fl">
          <label class="fl"><b>*</b>执业资格:</label>
          <div class="pa-input fl">
            <input type="text" name="professionalQualification" required
              ng-model="workerInfoDetail.addSkillList.professionalQualification" />
          </div>
          <span class="error-tip"
            ng-show="(addible.$submitted || addible.professionalQualification.$dirty) && addible.professionalQualification.$invalid">
            必填
          </span>
        </div>
        <a class="pa-btn"
          authorization-btn="api/safesite/workerSkill/insertSelective"
          ng-click="workerInfoDetail.addSkill(addible)">
          <i class="fa fa-plus"></i>
          <span class="ml5">增加</span>
        </a> 
        <a class="pa-btn reset-btn"
          ng-click="workerInfoDetail.cancelAddSkill()">
          <i class="fa fa-times"></i>
          <span class="ml5">取消</span>
        </a>   
      </div>
    </form>
  </div>
  <!-- 教育培训 -->
  <div class="info-items">
    <div class="info-title">
      <span class="title-brief">教育培训</span>
      <div class="edit-add"
        ng-click="workerInfoDetail.addTech()"
        ng-show="!workerInfoDetail.isAddTech"
        authorization-btn="api/education/insertEducationInfoByWorker">
        <i class="fa fa-plus"></i>
        <span>新增</span>
      </div>  
      <div class="edit-add"
        ng-click="workerInfoDetail.addTech()"
        ng-show="workerInfoDetail.isAddTech"
        authorization-btn="api/education/insertEducationInfoByWorker">
        <i class="fa fa-minus"></i>
        <span>取消新增</span>
      </div>       
    </div>
    <form action="" class="base-info pa-form-content">
     <table class="pa-table">
      <thead>
        <tr>
          <th>教育培训主题</th>
          <th>组织部门</th>
          <th>学时</th>
          <th>培训时间</th>
          <th>地点</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat = "item in workerInfoDetail.eduItemList" ng-class="{'editTech':item.tech}">
          <td>
            <div class="pa-input-unedit">
              {{item.theme}}
            </div>
          </td>
          <td class="info-organize">
            <div class="pa-input-unedit">
              {{item.organizationDepartmentName}}
            </div>
          </td>
          <td>
            <div class="pa-input-unedit">
              {{item.period}}
            </div>
          </td>
          <td>
            <div class="pa-input-unedit">
              {{item.trainTime}}
            </div>
          </td>
          <td>
            <div class="pa-input-unedit">
             {{item.place}}
           </div>
          </td>
          <td>
            <div class="edit-item"
              authorization-btn="api/education/deleteEducationInfoByWorker"
              ng-click="workerInfoDetail.techDetete(item,$index)"
              ng-show="!item.tech">
              <div class="edit-del">
                <i class="fa fa-trash"></i>
                <span>删除</span>
              </div>
            </div>
          </td>
        </tr>
      </tbody>
    </table>
  </form>
  <!-- 新增教育培训 -->
  <form class="add-tech"
    ng-show="workerInfoDetail.isAddTech" name="addtech">
    <div class="add-item">
      <div class="pa-input-edit">
        <label class="name"><b>*</b>教育培训主题:</label>
        <div class="pa-input">
          <select id="type" name="type" required
            ng-model="workerInfoDetail.educationTraningList.id">
            <option
              ng-repeat ="item in workerInfoDetail.topicList track by $index"
              ng-selected="$index == 1 ? true : false"
              value="{{item.id}}">{{item.name}}</option>
          </select>
        </div>
      </div>
      <div style="display: inline-block;">
        <a class="pa-btn"
          authorization-btn="api/education/insertEducationInfoByWorker"
          ng-click="workerInfoDetail.addTechEdu(addtech)">
          <i class="fa fa-plus"></i>
          <span class="ml5">增加</span>
        </a> 
        <a class="pa-btn reset-btn"
        ng-click="workerInfoDetail.cancelAddTech()">
          <i class="fa fa-times"></i>
          <span class="ml5">取消</span>
        </a>
      </div>                                           
    </div>
  </form>
  </div>
  <!-- 安全技术交底 -->
  <div class="info-items">
    <div class="info-title">
      <span class="title-brief title-safe">
        安全技术交底
      </span>
      <div class="edit-add" ng-click="workerInfoDetail.safeTech()"
        authorization-btn="api/education/insertEducationInfoByWorker"
        ng-hide="workerInfoDetail.isAddSafe">
        <i class="fa fa-plus"></i>
        <span>新增</span>
      </div> 
      <div class="edit-add" ng-click="workerInfoDetail.safeTech()"
        authorization-btn="api/education/insertEducationInfoByWorker"
        ng-show="workerInfoDetail.isAddSafe">
        <i class="fa fa-minus"></i>
        <span>取消新增</span>
      </div>
    </div>
    <div class="info-safe">
      <label class="info-dis"
        ng-class="{'safe-active':!workerInfoDetail.typeofWork}"
        ng-click="workerInfoDetail.distribution()">分布分项</label>
      <span class="info-work"
        ng-class="{'safe-active':workerInfoDetail.typeofWork}"
        ng-click="workerInfoDetail.profession()">工种</span>
    </div>
    <!-- 分部分项 -->
    <form class="base-info pa-form-content"
      ng-show="!workerInfoDetail.typeofWork">
      <div class="problems-list-outer">
        <table class="pa-table">
          <thead>
            <tr>
              <th>交底工序或工程名称</th>
              <th>组织部门</th>
              <th>学时</th>
              <th>培训时间</th>
              <th>地点</th>
              <th class="pro-operate">操作</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat = "item in workerInfoDetail.distributionItemList" ng-class="{'editSafe':item.safe}">
              <td>
                <div class="pa-input-unedit">
                  {{item.theme}}
                </div>
              </td>
              <td class="info-organize">
                <div class="pa-input-unedit">
                  {{item.organizationDepartmentName}}
                </div>
              </td>
              <td>
                <div class="pa-input-unedit">
                  {{item.period}}
                </div>
              </td>
              <td>
                <div class="pa-input-unedit">
                  {{item.trainTime}}
                </div>
              </td>
              <td>
                <div class="pa-input-unedit">
                  {{item.place}}
                </div>
              </td>
              <td>
                <div class="edit-item"
                  authorization-btn="api/education/deleteEducationInfoByWorker" 
                  ng-click="workerInfoDetail.safeDetete(item)">
                  <i class="fa fa-trash"></i>
                  <span>删除</span> 
                </div>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </form>
    <!-- 工种 -->
    <form class="base-info pa-form-content"
      ng-show="workerInfoDetail.typeofWork">
      <div class="problems-list-outer">
        <table class="pa-table">
          <thead>
            <tr>
              <th>工种</th>
              <th>组织部门</th>
              <th>学时</th>
              <th>培训时间</th>
              <th>地点</th>
              <th class="pro-operate">操作</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat = "item in workerInfoDetail.workItemList" ng-class="{'editSafe':item.work}">
              <td>
                <div class="pa-input-unedit">
                  {{item.theme}}
                </div>
              </td>
              <td class="info-organize">
                <div class="pa-input-unedit">
                  {{item.organizationDepartmentName}}
                </div>
              </td>
              <td>
                <div class="pa-input-unedit">
                  {{item.period}}
                </div>
              </td>
              <td>
                <div class="pa-input-unedit">
                  {{item.trainTime}}
                </div>
              </td>
              <td>
                <div class="pa-input-unedit">
                  {{item.place}}
                </div>
              </td>
              <td>
                <div class="edit-item"
                  authorization-btn="api/education/deleteEducationInfoByWorker"
                  ng-click="workerInfoDetail.workDetete(item)">
                  <i class="fa fa-trash"></i>
                  <span>删除</span> 
                </div>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </form>
    <!-- 新增分布分项 -->
    <form class="add-tech" name="addForm" novalidate 
      ng-show="workerInfoDetail.isDistribution && workerInfoDetail.isAddSafe">
      <div class="add-item">
        <div class="pa-input-edit">
          <label class="name"><b>*</b>主题:</label>
          <div class="pa-input">
            <select id="safeName" name="safeName" required
              ng-model="workerInfoDetail.safetyTechnicalList.safeName"
              ng-options="item.name for item in workerInfoDetail.safeDistributionList">
              <option value="{{item.id}}">{{item.name}}</option>
            </select>
          </div>
        </div>                                       
        <a class="pa-btn"
          authorization-btn="api/education/insertEducationInfoByWorker"
          ng-click="workerInfoDetail.addSafeDistribution(addForm)">
          <i class="fa fa-plus"></i>
          <span class="ml5">增加</span>
        </a> 
        <a class="pa-btn reset-btn"
          ng-click="workerInfoDetail.cancelDistribution()">
          <i class="fa fa-times"></i>
          <span class="ml5">取消</span>
        </a> 
      </div>
    </form>
    <!-- 新增工种 -->
    <form class="add-tech" name="addSafe" novalidate
      ng-show="workerInfoDetail.isWorker && workerInfoDetail.isAddSafe">
      <div class="add-item">
        <div class="pa-input-edit">
          <label class="name"><b>*</b>主题:</label>
          <div class="pa-input">
            <select id="topic" name="topic" required 
              ng-model="workerInfoDetail.safetyTechnicalList.safeName"
              ng-options="item.name for item in workerInfoDetail.safeWorkerList">
              <option value="{{item.id}}">{{item.name}}</option>
            </select>
          </div>
        </div>                                       
        <a class="pa-btn"
          authorization-btn="api/education/insertEducationInfoByWorker"
          ng-click="workerInfoDetail.addSafeCategory(addSafe)">
          <i class="fa fa-plus"></i><span class="ml5">增加</span>
        </a> 
        <a class="pa-btn reset-btn"
          ng-click="workerInfoDetail.cancelSafe()">
          <i class="fa fa-times"></i>
          <span class="ml5">取消</span>
        </a> 
      </div>
    </form>
  </div>
  <!-- 简历 -->
  <div class="info-items">
    <div class="info-title">
      <span class="title-brief">
      简&nbsp;历
      </span>
      <div class="edit-add"
        ng-click="workerInfoDetail.addResume()"
        ng-show="!workerInfoDetail.isAddResume"
        authorization-btn="api/safesite/workerResume/updateByPrimaryKeySelective">
        <i class="fa fa-plus"></i>
        <span>新增</span>
      </div>
      <div class="edit-add"
        ng-click="workerInfoDetail.addResume()"
        ng-show="workerInfoDetail.isAddResume"
        authorization-btn="api/safesite/workerResume/updateByPrimaryKeySelective">
        <i class="fa fa-minus"></i>
        <span>取消新增</span>
      </div>
    </div>
    <form class="base-info pa-form-content"
      name="editForm" novalidate>
      <table class="pa-table">
        <thead>
          <tr>
            <th class="expr-time">时间</th>
            <th class="expr-detail">经历</th>
            <th class="pro-operate">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat = "item in workerInfoDetail.resumeItemList track by $index" 
          ng-class="{'editRes':item.resume}">
            <td>
              <div class="pa-input-unedit">
                {{item.startTime1}}到{{item.endTime1}}
              </div>
              <div class="pa-input-edit">
                <input type="text"
                  ng-datepicker
                  name="startTime" required 
                  ng-model="workerInfoDetail.editableResumeItemList[$index].startTime"/>
                  到
                <input type="text"
                  ng-datepicker
                  name="endTime" required
                  ng-model="workerInfoDetail.editableResumeItemList[$index].endTime"/>
              </div>
            </td>
            <td>
              <div class="pa-input-unedit">
                {{item.projectExperience}}
              </div>
              <div class="pa-input-edit">
                <input type="text"  
                ng-model="workerInfoDetail.editableResumeItemList[$index].projectExperience" />
              </div>
            </td>
            <td>             
              <div ng-show="!item.resume">
                <div class="edit-item"
                  authorization-btn="api/safesite/workerResume/updateByPrimaryKeySelective"
                  ng-click="workerInfoDetail.editResume(item)"
                  >
                  <i class="fa fa-pencil"></i>
                  <span>编辑</span>
                </div>
                <div class="edit-item"
                  authorization-btn="api/safesite/workerResume/deleteByPrimaryKey"
                  ng-click="workerInfoDetail.resumeDetete(item.id)">
                  <i class="fa fa-trash"></i>
                  <span>删除</span> 
                </div>
              </div>
            </div>
            <div ng-show="item.resume">
              <div class="edit-item"
                authorization-btn="api/safesite/workerResume/updateByPrimaryKeySelective"
                ng-click="workerInfoDetail.saveResumeItem(item,$index,editForm)">
                <i class="fa fa-save"></i>
                <span>保存</span>
              </div>
              <div class="edit-item">
                <div class="edit-del" ng-click="workerInfoDetail.cancelEditResume(item,$index)">
                  <i class="fa fa-reply"></i>
                  <span>取消</span>
                </div>
              </div>
            </div>
          </td>
          </tr>
        </tbody>
      </table>
    </form>
    <form class="add-resume"
      ng-show="workerInfoDetail.isAddResume"
      name="addResume" id="addResume" novalidate>
      <div class="add-item">
        <div class="pa-input-edit">
          <label class="name fl"><b>*</b>时间:</label>
          <div class="pa-input">
            <input type="text" name="startTime" required
              ng-datepicker
              ng-model="workerInfoDetail.addResumeList.startTime" />
          </div>
          到
          <div class="pa-input">
            <input type="text" name="endTime" required 
              ng-datepicker
              ng-model="workerInfoDetail.addResumeList.endTime" />
          </div>
        </div>
        <div class="pa-input-edit">
          <label class="name fl"><b>*</b>经历:</label>
          <div class="pa-input">
            <input type="text" name="projectExperience" required
              ng-model="workerInfoDetail.addResumeList.projectExperience" />
          </div>
        </div>
        <div class="pa-input-edit"> 
          <a class="pa-btn"
            authorization-btn="api/safesite/workerResume/insertSelective"
            ng-click="workerInfoDetail.addSaveResume(addResume)">
            <i class="fa fa-plus"></i>
            <span class="ml5">增加</span>
          </a> 
          <a class="pa-btn reset-btn"
            ng-click="workerInfoDetail.cancelAddResume()">
            <i class="fa fa-times"></i>
            <span class="ml5">取消</span>
          </a> 
        </div> 
      </div>    
    </form>
  </div>
</div>